<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>句容机关网站管理后台</title>
        <link rel="stylesheet" href="../style/reset.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="../style/style.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="../style/fixed.css" type="text/css" />
        <link rel="stylesheet" href="../style/msgbox.css" type="text/css" />
        <link rel="stylesheet" href="../js-plugin/jquery-ui/jquery-ui.css" type="text/css" />
        <script type="text/javascript" src="../js-plugin/jquery-1.6.min.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery-ui/jquery-ui.min.js">
        </script>
        <script type="text/javascript" src="../js-plugin/simpla.jquery.configuration.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery.query-2.1.7.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery.template.js">
        </script>
        <script src="../js-plugin/jquery.easy-confirm-dialog.js">
        </script>
        <script src="../js-plugin/tpl.js">
        </script>
        <script src="../js/master/InvestList.js">
        </script>
    </head>
    <body>
        <div class="loadingbox clearfix">
        </div>
        <div id="main-content">
            <div class="content-box">
                <div class="content-box-header">
                    <h3>问卷列表</h3>
                    <div class="bulk-actions align-right20">
						<a class="button" href="InvestEdit?id=-1">新增问卷</a>
                    </div>
                </div>
                <div class="content-box-content">
                    <div class="tab-content default-tab">
                        <div class="notification attention png_bg" style="display:none">
                            <a href="#" class="close"><img src="/images/manage/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
                            <div id="errormsg">错误信息</div>
                        </div>
                        <table class="datalist">
                            <thead>
                                <tr>
                                    <th>标题</th>
                                    <th width="100">开始时间</th>
                                    <th width="100">结束时间</th>
                                    <th width="100">状态</th>
                                    <th width="100">创建人</th>
                                    <th width="300">管理</th>
                                </tr>
                            </thead>
                            <tbody>
                                <#list manager.getInvestListAll(20) as obj>
                                <tr>
                                    <td>${obj.title}</td>
                                    <td>${obj.starttime?date}</td>
									<td>${obj.endtime?date}</td>
                                    <td>
                                        <input id="topic_${obj.id?c}" name="topic" type="checkbox" value="${obj.id?c}"<#if obj.status == 1>checked="true"</#if> />
                                        <label for="topic_${obj.id?c}">启用</label>
                                    </td>
									<td>${obj.createusername}</td>
                                    <td>
                                    	<a class="button" href="InvestStatistics?id=${obj.id?c}">调查统计</a>
                                        <a class="button" href="InvestEdit?id=${obj.id?c}">编辑</a>
                                        <a class="button deleteBtn" href="${obj.id?c}">删除</a>
                                    </td>
                                </tr>
                                </#list>
                            </tbody>
                            <tfoot>
                                <tr>
                                    <td colspan="6">
                                        <div class="pagination">${manager.getPaginator()}</div>
                                        <div class="clear">
                                        </div>
                                    </td>
                                </tr>
                            </tfoot>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>
